package com.lostandfound.mapper;

import com.lostandfound.pojo.FindAny;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.List;


@Mapper
public interface FindMapper {

    List<FindAny> list(String name,LocalDate begin,LocalDate end);

    @Select("select * from find where id=#{id};")
    FindAny findById(Integer id);

    @Delete("delete from find where id=#{id}")
    void delete(Integer id);

    void update(FindAny findAny);
}
